﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.Service;
using DAL.Service.Impl;
using System.Collections;

namespace BIZ
{
   public class IncomeExpensesOper
    {
       IIncomeExpensesService incomeService = new IncomeExpensesServiceImpl();

        /// <summary>
        /// 保存会员卡信息
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public object save(object entity)
        {
            return incomeService.save(entity);
        }

        /// <summary>
        /// 删除会员卡
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public int delete(int id)
        {
            return incomeService.delete(id);
        }

        /// <summary>
        /// 查询会员卡详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IList getIncomeExpensesbyid(int id)
        {
            return incomeService.getIncomeExpensesbyid(id);
        }

        /// <summary>
        /// 分页查询会员卡数据集合
        /// </summary>
        /// <param name="pageno"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        public IList getIncomeExpenses( string in_s, string in_e, int pageno, int pagesize,string name,string nick)
        {
            return incomeService.getIncomeExpenses(in_s, in_e, pageno, pagesize, name, nick);
        }

        public IList userGetIncomeExpenses(int pageno, int pagesize, int uid)
        {
            return incomeService.userGetIncomeExpenses(pageno,pagesize,uid);
        }
    }
}
